/*
 * @Author: szx
 * @Date: 2022-05-10 14:42:57
 * @LastEditTime: 2022-05-10 14:52:49
 * @Description:
 * @FilePath: \leetcode\面试题\01\04\04.js
 */
/**
 * @param {string} s
 * @return {boolean}
 */
var canPermutePalindrome = function (s) {
    const set = {};
    for (let i of s) {
        if (!arr[i]) arr[i] = 1;
        else arr[i]--;
    }
    let flag = false;
    for (let a in arr) {
        if (a & 1) {
            if (!flag) flag = true;
            else return false;
        }
    }
    return true;
};
